package com.ruoyi.user.message.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 消息中心对象 message
 * 
 * @author zx
 * @date 2025-09-14
 */
public class Message extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键唯一约束 */
    private Integer id;

    /** 用户id */
    @Excel(name = "用户id")
    private Integer uid;

    /** 消息标题 */
    @Excel(name = "消息标题")
    private String title;

    /** 通知内容 */
    @Excel(name = "通知内容")
    private String content;

    /** 通知日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "通知日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 是否已读（0未读，1已读） */
    @Excel(name = "是否已读", readConverterExp = "0=未读，1已读")
    private Integer isread;

    /** 删除状态（0未删除，1已删除） */
    @Excel(name = "删除状态", readConverterExp = "0=未删除，1已删除")
    private Integer del;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setUid(Integer uid) 
    {
        this.uid = uid;
    }

    public Integer getUid() 
    {
        return uid;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }

    public void setIsread(Integer isread) 
    {
        this.isread = isread;
    }

    public Integer getIsread() 
    {
        return isread;
    }

    public void setDel(Integer del) 
    {
        this.del = del;
    }

    public Integer getDel() 
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("uid", getUid())
            .append("title", getTitle())
            .append("content", getContent())
            .append("time", getTime())
            .append("isread", getIsread())
            .append("del", getDel())
            .toString();
    }
}
